// 智能导诊数据存储
export default {
	namespaced: true,
	state: {
		//部位信息
		bwInfo: [],
		//详细信息 部位中的小部位 症状数组
		detailInfo: [],
		//选择科室信息
		ksInfo:[]
	},
	getters: {

	},
	mutations: {
		updateBwInfo(state, bwInfo) {
			state.bwInfo = bwInfo;
		},
		updateDetailInfo(state, detailInfo) {
			state.detailInfo = detailInfo;
		},
		updateKsInfo(state, ksInfo) {
			state.ksInfo = ksInfo;
		},
		//清空记录
		updateZndzDatas(state){
			state.ksInfo = '';
			state.detailInfo = '';
			state.ksInfo = '';
		}
	},
	actions: {
		updateBwInfo({commit}, bwInfo) {
			commit('updateBwInfo', bwInfo)
		},
		updateDetailInfo({commit}, detailInfo) {
			commit('updateDetailInfo', detailInfo)
		},
		updateKsInfo({commit}, ksInfo) {
			commit('updateKsInfo', ksInfo)
		},
		updateZndzDatas({commit}) {
			commit('updateZndzDatas')
		}
	}
}
